from django.db import models

class Thesis(models.Model):
    user_id = models.IntegerField(null=True)
    first_author = models.CharField(max_length=255)
    corresponding_author = models.CharField(max_length=255)
    title = models.CharField(max_length=255)
    journal = models.CharField(max_length=255)
    pub_year = models.IntegerField()
    thesis_partition = models.CharField(max_length=255)
    impact_factor = models.CharField(max_length=20)
    is_deleted = models.BooleanField(null=True)

    class Meta:
        db_table = 'thesis'  # 明确指定数据库表名